public class test666 {


    
    public static int func5(int n){
        if(n == 1) return 1;

        return n * func5(n - 1);
    }
    public static void main(String[] args) {
        System.out.println(func5(5));
    }

    public static int func4(int n){
        if(n == 0) return 0;

        return n + func4(n - 1);
    }
    public static void main5(String[] args) {
        System.out.println(func4(10));
    }
    public static void func3(int n){
         if(n == 0) return;

        func3(n / 10);
        System.out.print(n % 10 + " ");
    }

    public static void main4(String[] args) {
        func3(1920);
    }
    public static int func2(int n){
        if(n < 10) return n;

        return n % 10 + func2(n / 10);
    }

    public static void main3(String[] args) {
        System.out.println(func2(190));
    }
    public static int func(int n){
        if(n == 2 || n == 1) return 1;

        return func(n-1) + func(n-2);
    }

    public static void main2(String[] args) {
        System.out.println(func(5));
    }

    public static void main1(String[] args) {
        Dog dog = new Dog();
        dog.name = "小七";
        dog.color = "红色";

        dog.print();

        dog.name = "小八";
        dog.color = "黄色";
        dog.print();
    }

}

class Dog{
    public String name;
    public String color;

    public void print(){
        System.out.println(name + " ");
    }
}
